//
//  NoticeView.m
//  sensen_ios
//
//  Created by mc on 16/2/23.
//  Copyright © 2016年 pro. All rights reserved.
//


#import "NoticeView.h"

@implementation NoticeView{
     UILabel *lblCount;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (id)init{
    self = [super init];
    if (self) {
        self.backgroundColor = [UIColor clearColor];
        UIImageView *iv = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 19, 19)];
        iv.image = [UIImage imageNamed:@"person_message_disabled"];
        [self addSubview:iv];
        lblCount = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 19, 19)];
        lblCount.backgroundColor = [UIColor clearColor];
        lblCount.textAlignment = NSTextAlignmentCenter;
        lblCount.text = [@"" stringByAppendingFormat:@"%d",self.intCount];
        lblCount.textColor = [UIColor whiteColor];
        lblCount.font = [UIFont systemFontOfSize:12];
        [self addSubview:lblCount];
    }
    return self;
}

- (void)setIntCount:(int)intCount{
    _intCount = intCount;
    lblCount.text = [@"" stringByAppendingFormat:@"%d",intCount];
}



@end
